home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Magazine / Morphos / GCC / ppc-amigaos / include / clib / alib_protos.h < prev    next >
C/C++ Source or Header  |  2000-02-28  |  5KB  |  133 lines

  1. #ifndef  CLIB_ALIB_PROTOS_H
  2. #define  CLIB_ALIB_PROTOS_H
  3.  
  4. /*
  5. **    $VER: alib_protos.h 1.5 (25.8.92)
  6. **    Includes Release 40.15
  7. **
  8. **    C prototypes. For use with 32 bit integers only.
  9. **
  10. **    (C) Copyright 1990-1993 Commodore-Amiga, Inc.
  11. **        All Rights Reserved
  12. */
  13.  
  14. #ifndef  EXEC_TYPES_H
  15. #include <exec/types.h>
  16. #endif
  17. #ifndef  DEVICES_TIMER_H
  18. #include <devices/timer.h>
  19. #endif
  20. #ifndef  DEVICES_KEYMAP_H
  21. #include <devices/keymap.h>
  22. #endif
  23. #ifndef  LIBRARIES_COMMODITIES_H
  24. #include <libraries/commodities.h>
  25. #endif
  26. #ifndef  UTILITY_HOOKS_H
  27. #include <utility/hooks.h>
  28. #endif
  29. #ifndef  INTUITION_CLASSES_H
  30. #include <intuition/classes.h>
  31. #endif
  32. #ifndef  INTUITION_CLASSUSR_H
  33. #include <intuition/classusr.h>
  34. #endif
  35. #ifndef  GRAPHICS_GRAPHINT_H
  36. #include <graphics/graphint.h>
  37. #endif
  38.  
  39. /*  Exec support functions */
  40.  
  41. void BeginIO( struct IORequest *ioReq );
  42. struct IORequest *CreateExtIO( struct MsgPort *port, long ioSize );
  43. struct MsgPort *CreatePort( STRPTR name, long pri );
  44. struct IOStdReq *CreateStdIO( struct MsgPort *port );
  45. struct Task *CreateTask( STRPTR name, long pri, APTR initPC,
  46.     unsigned long stackSize );
  47. void DeleteExtIO( struct IORequest *ioReq );
  48. void DeletePort( struct MsgPort *ioReq );
  49. void DeleteStdIO( struct IOStdReq *ioReq );
  50. void DeleteTask( struct Task *task );
  51. void NewList( struct List *list );
  52. APTR LibAllocPooled( APTR poolHeader, unsigned long memSize );
  53. APTR LibCreatePool( unsigned long memFlags, unsigned long puddleSize,
  54.     unsigned long threshSize );
  55. void LibDeletePool( APTR poolHeader );
  56. void LibFreePooled( APTR poolHeader, APTR memory, unsigned long memSize );
  57.  
  58. /* Assorted functions in amiga.lib */
  59.  
  60. ULONG FastRand( unsigned long seed );
  61. UWORD RangeRand( unsigned long maxValue );
  62.  
  63. /* Graphics support functions in amiga.lib */
  64.  
  65. void AddTOF( struct Isrvstr *i, long (*p)(), long a );
  66. void RemTOF( struct Isrvstr *i );
  67. void waitbeam( long b );
  68.  
  69. /* math support functions in amiga.lib */
  70.  
  71. FLOAT afp( BYTE *string );
  72. void arnd( long place, long exp, BYTE *string );
  73. FLOAT dbf( unsigned long exp, unsigned long mant );
  74. LONG fpa( FLOAT fnum, BYTE *string );
  75. void fpbcd( FLOAT fnum, BYTE *string );
  76.  
  77. /* Timer support functions in amiga.lib (V36 and higher only) */
  78.  
  79. LONG TimeDelay( long unit, unsigned long secs, unsigned long microsecs );
  80. LONG DoTimer( struct timeval *, long unit, long command );
  81.  
  82. /*  Commodities functions in amiga.lib (V36 and higher only) */
  83.  
  84. void ArgArrayDone( void );
  85. UBYTE **ArgArrayInit( long argc, UBYTE **argv );
  86. LONG ArgInt( UBYTE **tt, STRPTR entry, long defaultval );
  87. STRPTR ArgString( UBYTE **tt, STRPTR entry, STRPTR defaulstring );
  88. CxObj *HotKey( STRPTR description, struct MsgPort *port, long id );
  89. struct InputEvent *InvertString( STRPTR str, struct KeyMap *km );
  90. void FreeIEvents( struct InputEvent *events );
  91.  
  92. /* Commodities Macros */
  93.  
  94. /* CxObj *CxCustom(LONG(*)(),LONG id)(A0,D0) */
  95. /* CxObj *CxDebug(LONG id)(D0) */
  96. /* CxObj *CxFilter(STRPTR description)(A0) */
  97. /* CxObj *CxSender(struct MsgPort *port,LONG id)(A0,D0) */
  98. /* CxObj *CxSignal(struct Task *task,LONG signal)(A0,D0) */
  99. /* CxObj *CxTranslate(struct InputEvent *ie)(A0) */
  100.  
  101. /*  ARexx support functions in amiga.lib */
  102.  
  103. BOOL CheckRexxMsg( struct Message *rexxmsg );
  104. LONG GetRexxVar( struct Message *rexxmsg, UBYTE *name, UBYTE **result );
  105. LONG SetRexxVar( struct Message *rexxmsg, UBYTE *name, UBYTE *value,
  106.     long length );
  107.  
  108. /*  Intuition hook and boopsi support functions in amiga.lib. */
  109. /*  These functions do not require any particular ROM revision */
  110. /*  to operate correctly, though they deal with concepts first introduced */
  111. /*  in V36.  These functions would work with compatibly-implemented */
  112. /*  hooks or objects under V34. */
  113.  
  114. ULONG CallHookA( struct Hook *hookPtr, Object *obj, APTR message );
  115. ULONG CallHook( struct Hook *hookPtr, Object *obj, ... );
  116. ULONG DoMethodA( Object *obj, Msg message );
  117. ULONG DoMethod( Object *obj, unsigned long MethodID, ... );
  118. ULONG DoSuperMethodA( struct IClass *cl, Object *obj, Msg message );
  119. ULONG DoSuperMethod( struct IClass *cl, Object *obj, unsigned long MethodID,
  120.     ... );
  121. ULONG CoerceMethodA( struct IClass *cl, Object *obj, Msg message );
  122. ULONG CoerceMethod( struct IClass *cl, Object *obj, unsigned long MethodID,
  123.     ... );
  124. ULONG SetSuperAttrs( struct IClass *cl, Object *obj, unsigned long Tag1,
  125.     ... );
  126.  
  127. /*  Network-support functions in amiga.lib. */
  128. /*  ACrypt() first appeared in later V39 versions of amiga.lib, but */
  129. /*  operates correctly under V37 and up. */
  130.  
  131. STRPTR ACrypt( STRPTR buffer, STRPTR password, STRPTR username );
  132. #endif     /* CLIB_ALIB_PROTOS_H */
  133.